<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>arguments</title>
</head>

<script>

    function Dog(name,age) {
        this.name = name;
        this.age = age;
        this.bark = function(){
            alert("I am "+this.name)
        }
    }


    var dog = new Dog("huzi",2)

    dog.bark()


</script>
<body>

</body>
</html>